export const rule={
    nickName:[
        { required: true, message: '请输入用户名称',trigger: ['change', 'blur'] },
    ],
    password:[
        { required: true, message: '请输入用户密码',trigger: ['change', 'blur'] },
    ],
    phone:[
        { required: true, message: '请输入手机号码',trigger: ['change', 'blur'] },
    ],
   
    mond:[
        { required: true, message: '请输入单位',trigger: ['change', 'blur'] },
    ],
    status:[
        { required: true, message: '请选择状态',trigger: ['change', 'blur'] },
    ],
    role:[
        { required: true, message: '请输入角色',trigger: ['change', 'blur'] },
    ],
   
}


export const addRule={
    nickName:[
        { required: true, message: '请输入用户名称',trigger: ['change', 'blur'] },
    ],
    status:[
        { required: true, message: '请选择状态',trigger: ['change', 'blur'] },
    ],
    menuPermission:[
        { required: true, message: '请选择菜单权限',trigger: ['change', 'blur'] },
    ],
   
    buildingAuthority:[
        { required: true, message: '请选择楼宇权限',trigger: ['change', 'blur'] },
    ],
   
}